module.exports = {
  publicPath: './',
  lintOnSave: true,
  productionSourceMap: false,
 
  devServer: {
    // 端口配置
    port: 8089,
    open:true,
    // 反向代理配置
    proxy: {
      [process.env.VUE_APP_BASE_API]: {
        target: process.env.VUE_APP_BASE_API==='/dev-api'?process.env.VUE_APP_SERVICE_URL:process.env.VUE_APP_SERVICE_URL,
        changeOrigin:true,
        ws: true,
        pathRewrite: {
          ['^'+process.env.VUE_APP_BASE_API]: '/'
        }
      }
    }
  }
}
